package com.glory.brepda.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.brepda.R;
import com.glory.brepda.entity.BreMhCheckLotEntity;
import com.glory.brepda.entity.LotSubmissionEntity;

import java.util.List;

public class BreMhCheckLotAdapter extends BaseQuickAdapter<BreMhCheckLotEntity.ResultBean, BaseViewHolder> {

    public BreMhCheckLotAdapter(@Nullable List<BreMhCheckLotEntity.ResultBean> data) {
        super(R.layout.adapter_lot_submissionhis,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, BreMhCheckLotEntity.ResultBean item) {
        helper.setText(R.id.tvLotID,item.getCutterLotId())
                .setText(R.id.tvState,item.getReserved2().equals("Y")?"已绑定":"绑定失败");

    }
}
